-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transform templateUrl, styleUrls and styles everywhere #211
Merged
thymikee
merged 4 commits into
thymikee:master
from
wtho:transform-templateurl-everywhere
Dec 6, 2018
Merged
Transform templateUrl, styleUrls and styles everywhere #211
thymikee
merged 4 commits into
thymikee:master
from
wtho:transform-templateurl-everywhere
Dec 6, 2018
+132
−122
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
templateUrl can also occur e. g. in tests, outside of decorators. These should also be transformed.
Note that I added |
wtho
changed the title
Transform templateurl everywhere
Transform templateUrl, styleUrls and styles everywhere
Dec 6, 2018
wtho
commented
Dec 6, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality is done - comments have to be updated
thymikee
approved these changes
Dec 6, 2018
Lgtm 👍 |
ahnpnl
approved these changes
Dec 6, 2018
thymikee
pushed a commit
that referenced
this pull request
Dec 6, 2018
* Fix transformer to handle templateUrl everywhere templateUrl can also occur e. g. in tests, outside of decorators. These should also be transformed. * Update readme - preprocessor => transformer * Make comments match new implementation * Update comments and docs
thymikee
added a commit
that referenced
this pull request
Jan 26, 2019
* origin/master: Upgraded ts-jest version. (#219) docs: add astTransformers in configuration example (#218) feat: Import jest-zone-patch (#214) chore: Migrate CI config to CircleCI v2 (#212) Transform templateUrl, styleUrls and styles everywhere (#211) feat: adjust semver range of jest-zone-patch (#209) Adjust CHANGELOG (#208)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #210
templateUrl
gets transformed e. g. in*.spec.ts
outside a decoratorREADME.md
❗ Note that it seems the transformer was modified a lot, but basically I just removed code that only looked deep inside decorators. Now it checks everywhere for
stlyes
,styleUrls
andtemplateUrl
.